package com.google.code.irouter.portal.client.dashboard.main.center.managers.library.browser;

import com.google.code.irouter.portal.client.dashboard.main.center.managers.library.browser.consumer.Editor;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.grid.GridPanel;
import com.gwtext.client.widgets.grid.event.GridRowListenerAdapter;

public final class ConsumerListener extends GridRowListenerAdapter {

	@Override
	public void onRowDblClick(final GridPanel grid, int rowIndex, EventObject e) {
		Editor.turnon(Editor.Mode.EDIT, e.getTarget(), grid.getStore().getAt(rowIndex).getAsString("key"));
    } 
}
